import request from '@/utils/request'

// 查询音乐与歌手关联表列表
export function listMusicsinger(query) {
  return request({
    url: '/music/musicsinger/list',
    method: 'get',
    params: query
  })
}

// 查询音乐与歌手关联表详细
export function getMusicsinger(musicId) {
  return request({
    url: '/music/musicsinger/' + musicId,
    method: 'get'
  })
}

// 新增音乐与歌手关联表
export function addMusicsinger(data) {
  return request({
    url: '/music/musicsinger',
    method: 'post',
    data: data
  })
}

// 修改音乐与歌手关联表
export function updateMusicsinger(data) {
  return request({
    url: '/music/musicsinger',
    method: 'put',
    data: data
  })
}

// 删除音乐与歌手关联表
export function delMusicsinger(musicId) {
  return request({
    url: '/music/musicsinger/' + musicId,
    method: 'delete'
  })
}
